﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="UpdateProfile.aspx.vb" Inherits="UpdateProfile" %>

<!DOCTYPE html >

<html >
<head runat="server">
    <title></title>
    <link href="style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="js/cufon-yui.js"></script>
    <script type="text/javascript" src="js/arial.js"></script>
    <script type="text/javascript" src="js/cuf_run.js"></script>
    <script type="text/javascript" src="js/jquery-1.6.2.min.js"></script>
    
    <script type="text/javascript">
        if (window.name.length <= 0) {
            window.location = "Login.aspx";
        } else {

        }
        $(document).ready(function () {
            Page.Init();
        });
        var Page = {};
        Page.Init = function () {
        };
    </script>
</head>
<body>
    <form id="form1" runat="server">
        <asp:Panel runat="server" ID="panelPassword" Visible="false">
            <div class="hdr">Change password</div>
            <div>
                <table>
                    <tr>
                        <td>Current password</td>
                        <td><asp:TextBox runat="server" ID="txtcPassword" TextMode="Password"></asp:TextBox></td>
                        <td><asp:Label runat="server" CssClass="loginerrmsg" ID="lblerrxpassword" Visible="false" Text="Invalid password"></asp:Label></td>
                    </tr>
                    <tr>
                        <td>New password</td>
                        <td><asp:TextBox runat="server" ID="txtNewPassword" TextMode="Password"></asp:TextBox></td>
                        <td><asp:Label runat="server" CssClass="loginerrmsg" ID="lblerrnpassword" Visible="false" Text="Invalid password"></asp:Label></td>
                    </tr>
                    <tr>
                        <td>Retype new password</td>
                        <td><asp:TextBox runat="server" ID="txtRePassword" TextMode="Password"></asp:TextBox></td>
                        <td><asp:Label runat="server" CssClass="loginerrmsg" ID="lblerrrpassword" Visible="false" Text="Invalid password"></asp:Label></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td><asp:Button runat="server" Text="Change" ID="btnChangePassword" /></td>
                        <td></td>
                    </tr>
                </table>
            </div>
            <div>
                <asp:Label Visible="false" runat="server" ID="lblPassConfirm" Text="Password changed" CssClass="successmessage"></asp:Label>
            </div>
        </asp:Panel>
         <asp:Panel runat="server" ID="panelEmail" Visible="false">
            <asp:HiddenField runat="server" ID="txtIniTime" />
            <div class="hdr">Change email id</div>
            <div>
                <table>
                    <tr>
                        <td>Current email id</td>
                        <td><asp:TextBox runat="server" ID="txtCEmailID" Enabled="false" ></asp:TextBox></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td>New email id</td>
                        <td><asp:TextBox runat="server" ID="txtNewEmail" ></asp:TextBox></td>
                        <td><asp:Label runat="server" CssClass="loginerrmsg" ID="lblerremailid" Visible="false" Text="Invalid email id"></asp:Label></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td><asp:Image runat="server" ID="imgCap" /></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td><asp:TextBox runat="server" ID="txtCaptcha"></asp:TextBox></td>
                        <td><asp:Label runat="server" CssClass="loginerrmsg" ID="lblerrcaptachemail" Visible="false" Text="Type the text from image"></asp:Label></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td><asp:Button runat="server" Text="Change" ID="btnUpdateEmail" /></td>
                        <td></td>
                    </tr>
                    
                </table>
            </div>
            <div>
                <asp:Label Visible="false" runat="server" ID="lblemailsuccess" Text="Email id changed" CssClass="successmessage"></asp:Label>
            </div>
            <div>
                <asp:Label Visible="false" runat="server" ID="Label4" Text="Password changed" CssClass="successmessage"></asp:Label>
            </div>
        </asp:Panel>
    </form>
</body>
</html>
